package fr.neticar.webremoteclient.server.application;

import fr.neticar.webremoteclient.client.exception.WRCException;
/**
 * 
 * @author Freches Victor
 * Singleton 
 * Manage remoteClients
 */
public class RemoteClientManager {



	private static RemoteClientManager instance = new RemoteClientManager();



	public static RemoteClientManager getInstance() {
		return instance;
	}
	/**
	 * Start a new VNCClient (VNCViewer) and return it
	 * @return IRemoteClient (here a VNC client)
	 * @throws WRCException 
	 */
	public IRemoteClient startNewVNCClient(String host,String port,String password) throws WRCException{
		return new VNCClient(host,port,password);
	}
	
	public IRemoteClient startNewRDPClient(String host,String port,String password) throws WRCException{
		return new RDPClient(host,port,password);
	}
}
